package com.dy.lock.screen.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.dy.lock.screen.dao.HomePageRecomListShopMaterialRelationDao;
import com.dy.lock.screen.pojo.HomePageRecomListShopMaterialInfo;

@Repository("homePageRecomListShopMaterialRelationDao")
public class HomePageRecommendListMaterialRelationDaoImpl extends
		BaseDaoImpl<HomePageRecomListShopMaterialInfo, String> implements
		HomePageRecomListShopMaterialRelationDao {

	@Override
	public HomePageRecomListShopMaterialInfo queryByParameters(
			HomePageRecomListShopMaterialInfo parameters) {
		// TODO Auto-generated method stub
		return this.getSqlSession().selectOne(
				getQueryNamespace() + ".queryByParameters", parameters);
	}

	@Override
	public List<HomePageRecomListShopMaterialInfo> queryListByRidOrLidOrSid(
			HomePageRecomListShopMaterialInfo ridOrLid) {
		// TODO Auto-generated method stub
		return this.getSqlSession().selectList(
				getQueryNamespace() + ".queryListByRidOrLidOrSid", ridOrLid);
	}

	@Override
	public List<String> queryMaterialIdByLid(String lid) {
		// TODO Auto-generated method stub
		return this.getSqlSession().selectList(
				getQueryNamespace() + ".queryMaterialIdByLid", lid);
	}

	@Override
	public List<String> queryMaterialIdByRid(String rid) {
		// TODO Auto-generated method stub
		return this.getSqlSession().selectList(
				getQueryNamespace() + ".queryMaterialIdByRid", rid);
	}

	@Override
	public List<String> queryMaterialIdBySid(String sid) {
		// TODO Auto-generated method stub
		return this.getSqlSession().selectList(
				getQueryNamespace() + ".queryMaterialIdBySid", sid);
	}

	@Override
	public String getQueryNamespace() {
		// TODO Auto-generated method stub
		return "mybatis.xml.HomePageRecomListShopMaterialMapper";
	}

}
